//
//  MPMenuModel.m
//  MarkPlatform
//
//  Created by xiao6 on 2017/12/17.
//  Copyright © 2017年 AT. All rights reserved.
//

#import "MPMenuModel.h"

@implementation MPMenuModel

+ (instancetype)modelWithTitle:(NSString *)title icon:(NSString *)icon didClick:(void (^)(void))didClickBlock {
    MPMenuModel *model = [[self alloc] init];
    model.title = title;
    model.image = icon;
    model.didClickBlock = didClickBlock;
    return model;
}
+ (instancetype)modelWithTitle:(NSString *)title detailText:(NSString *)detailText didClick:(void (^)(void))didClickBlock {
    MPMenuModel *model = [[self alloc] init];
    model.title = title;
    model.detailText = detailText;
    model.didClickBlock = didClickBlock;
    return model;
}
@end
